projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b60478b
)
cssvalue: Move value initialization
author
Benjamin Otte
<otte@redhat.com>
Tue, 15 Jan 2013 14:31:59 +0000
(15:31 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Tue, 15 Jan 2013 14:31:59 +0000
(15:31 +0100)
Makes it easier to track places where tha value is not initialized.
gtk/gtkcsscolorvalue.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcsscolorvalue.c
b/gtk/gtkcsscolorvalue.c
index a30093e479822b59e450b7c4a0af1d37c2547c5f..cc7d0d2a06986a722f44ff6843a2538524e2456e 100644
(file)
--- a/
gtk/gtkcsscolorvalue.c
+++ b/
gtk/gtkcsscolorvalue.c
@@
-153,7
+153,6
@@
_gtk_css_color_value_resolve (GtkCssValue *color,
dependencies = &unused;
*dependencies = 0;
- value = NULL;
switch (color->type)
{
case COLOR_TYPE_LITERAL:
@@
-265,6
+264,7
@@
_gtk_css_color_value_resolve (GtkCssValue *color,
}
break;
default:
+ value = NULL;
g_assert_not_reached ();
}